class AdminController < ApplicationController
	def index
		if(request.post? && params[:pwd]=='hicasper')
			session[:admin]=true
		end
		if session[:admin]
			redirect_to :controller=>'hotfiles'
		else
			render :layout => false 
		end
	end
	def logout
		session[:admin] = nil
		redirect_to :controller=>'index'
	end
end
